//工程
var sgproList = [
  { crtname: "全部工程", name: "" },
  { crtname: "OMS", name: "OMS" },
  { crtname: "sms", name: "sms" },
  { crtname: "ups", name: "ups" },
  { crtname: "sg", name: "sg" }
];
//接口名称
var sgserAllList = [
  {
    id: "1",
    crtname: "打包算法1",
    path: "com.winit.ups.spi.packingalgorithm.PackingAlgorithmService",
    sys: "OMS"
  },
  {
    id: "2",
    crtname: "打包算法2",
    path: "com.winit.ups.spi.packingalgorithm.PackingAlgorithmService",
    sys: "sms"
  },
  {
    id: "3",
    crtname: "打包算法3",
    path: "com.winit.ups.spi.packingalgorithm.PackingAlgorithmService",
    sys: "ups"
  }
];
// @type
var sginTypes = [
  {
    type:
      "com.winit.ups.spi.packingalgorithm.command.MerchandisePackingCommand",
    service: 'com.winit.ups.spi.packingalgorithm.PackingAlgorithmService"'
  },
  {
    type:
      "com.winit.ups.spi.packingalgorithm.command.MerchandisePackingCommand",
    service: 'com.winit.ups.spi.packingalgorithm.PackingAlgorithmService"'
  },
  {
    type:
      "com.winit.ups.spi.packingalgorithm.command.MerchandisePackingCommand",
    service: 'com.winit.ups.spi.packingalgorithm.PackingAlgorithmService"'
  }
];

//方法名
var sgmethAllList = [
  {
    crtname: "获取打包结果1",
    name: "generatePackingStrategy",
    service: "1"
  },
  {
    crtname: "获取打包结果2",
    name: "generatePackingStrategy",
    service: "2"
  },
  {
    crtname: "获取打包结果3",
    name: "generatePackingStrategy",
    service: "3"
  }
];

var areaAllList = [
  { crtname: "广州", areaUrl: "www.guangzhou.com" },
  { crtname: "美国", areaUrl: "www.america.com" },
  { crtname: "欧洲", areaUrl: "www.europe.com" }
];
//参数类型
var sgparamTypes = [
  {
    crtname: "正常参数1",
    param: {
      ctx: {},
      merchandiseListCommand: [
        {
          "@type":
            "com.winit.ups.spi.packingalgorithm.command.MerchandisePackingCommand",
          code: "M010000000000418727",
          qty: "1",
          length: "60.00",
          width: "34.00",
          height: "7.00",
          weight: "2.2130",
          volume: "0.014280000"
        },
        {
          "@type":
            "com.winit.ups.spi.packingalgorithm.command.MerchandisePackingCommand",
          code: "M010000000000285701",
          qty: "1",
          length: "24.50",
          width: "21.00",
          height: "4.50",
          weight: "0.5960",
          volume: "0.002315250"
        }
      ],
      warehouseCode: "EWD",
      lengthLimit: "105.01",
      widthLimit: "105.01",
      heightLimit: "105.01",
      sumLimit: "1000.00",
      zweiLimit: "1000.00"
    },
    paramKey: {
      ctxInfo: { comment: "xxxxxxx", isError: true },
      merchandiseListCommandInfo: { comment: "", isError: true },
      merchandiseListCommand: [
        {
          "@typeInfo": { comment: "自定义类型", isError: true },
          codeInfo: { comment: "代码", isError: true },
          qtyInfo: { comment: "数量", isError: true },
          lengthInfo: { comment: "长度", isError: true },
          widthInfo: { comment: "宽度", isError: true },
          heightInfo: { comment: "高度", isError: true },
          weightInfo: { comment: "重量", isError: true },
          volumeInfo: { comment: "容积", isError: true }
        },
        {
          "@typeInfo": { comment: "自定义类型", isError: true },
          codeInfo: { comment: "代码", isError: true },
          qtyInfo: { comment: "数量", isError: true },
          lengthInfo: { comment: "长度", isError: true },
          widthInfo: { comment: "宽度", isError: true },
          heightInfo: { comment: "高度", isError: true },
          weightInfo: { comment: "重量", isError: true },
          volumeInfo: { comment: "容积", isError: true }
        }
      ],
      warehouseCodeInfo: { comment: "仓库", isError: true },
      lengthLimitInfo: { comment: "长度限制", isError: true },
      widthLimitInfo: { comment: "宽度限制", isError: true },
      heightLimitInfo: { comment: "高度限制", isError: true },
      sumLimitInfo: { comment: "体积限制", isError: true },
      zweiLimitInfo: { comment: "重量限制", isError: true }
    }, //入参被标记的key
    rtn: {
      //自定义期望返回的参数模板
      code: "0",
      msg: "",
      data: {
        orgId: null,
        createdby: null,
        created: null,
        updatedby: null,
        updated: null,
        isActive: null,
        length: 81,
        width: 34,
        height: 7,
        sizeCode: null,
        sizeName: null,
        packageContainerList: [
          {
            orgId: null,
            createdby: null,
            created: null,
            updatedby: null,
            updated: null,
            isActive: null,
            packageNo: 21,
            length: 212,
            width: 224.5,
            height: 4.5,
            x: 60,
            y: 0,
            z: 0,
            merchandisePackageList: [
              {
                orgId: null,
                createdby: null,
                created: null,
                updatedby: null,
                updated: null,
                isActive: null,
                code: "M010000000000285701",
                x: 0,
                y: 0,
                z: 0,
                length: 81,
                width: 34,
                height: 7,
                merchandiseLength: 24.5,
                merchandiseWidth: 21,
                merchandiseHeight: 4.5,
                merchandiseWeight: 0.596,
                merchandiseVolume: 0.00231525
              }
            ]
          },
          {
            orgId: null,
            createdby: null,
            created: null,
            updatedby: null,
            updated: null,
            isActive: null,
            packageNo: 1,
            length: 620,
            width: 34,
            height: 7,
            x: 0,
            y: 0,
            z: 10,
            merchandisePackageList: [
              {
                orgId: null,
                createdby: null,
                created: null,
                updatedby: null,
                updated: null,
                isActive: null,
                code: "M010000000000418727",
                x: 0,
                y: 0,
                z: 0,
                length: 34,
                width: 7,
                height: 81,
                merchandiseLength: 60,
                merchandiseWidth: 34,
                merchandiseHeight: 7,
                merchandiseWeight: 2.2103,
                merchandiseVolume: 0.01428
              }
            ]
          }
        ]
      }
    }, //出参
    rtnKey: {} //出参的key
  },
  {
    crtname: "异常参数1",
    param: {
      ctx: {},
      merchandiseListCommand: [
        {
          "@type":
            "com.winit.ups.spi.packingalgorithm.command.MerchandisePackingCommand",
          code: "M010000000000418727",
          qty: "1",
          length: "60.00",
          width: "34.00",
          height: "7.00",
          weight: "2.2130",
          volume: "0.014280000"
        },
        {
          "@type":
            "com.winit.ups.spi.packingalgorithm.command.MerchandisePackingCommand",
          code: "M010000000000285701",
          qty: "1",
          length: "24.50",
          width: "21.00",
          height: "4.50",
          weight: "0.5960",
          volume: "0.002315250"
        }
      ],
      warehouseCode: "EWD",
      lengthLimit: "105.01",
      widthLimit: "105.01",
      heightLimit: "105.01",
      sumLimit: "1000.00",
      zweiLimit: "1000.00"
    },
    paramKey: {},
    rtn: {},
    rtnKey: {}
  },
  {
    crtname: "异常参数2",
    param: {
      ctx: {},
      merchandiseListCommand: [
        {
          "@type":
            "com.winit.ups.spi.packingalgorithm.command.MerchandisePackingCommand",
          code: "M010000000000418727",
          qty: "1",
          length: "60.00",
          width: "34.00",
          height: "7.00",
          weight: "2.2130",
          volume: "0.014280000"
        },
        {
          "@type":
            "com.winit.ups.spi.packingalgorithm.command.MerchandisePackingCommand",
          code: "M010000000000285701",
          qty: "1",
          length: "24.50",
          width: "21.00",
          height: "4.50",
          weight: "0.5960",
          volume: "0.002315250"
        }
      ],
      warehouseCode: "EWD",
      lengthLimit: "105.01",
      widthLimit: "105.01",
      heightLimit: "105.01",
      sumLimit: "1000.00",
      zweiLimit: "1000.00"
    },
    paramKey: {},
    rtn: {},
    rtnKey: {}
  },
  {
    crtname: "异常参数3",
    param: {
      ctx: {},
      merchandiseListCommand: [
        {
          "@type":
            "com.winit.ups.spi.packingalgorithm.command.MerchandisePackingCommand",
          code: "M010000000000418727",
          qty: "1",
          length: "60.00",
          width: "34.00",
          height: "7.00",
          weight: "2.2130",
          volume: "0.014280000"
        },
        {
          "@type":
            "com.winit.ups.spi.packingalgorithm.command.MerchandisePackingCommand",
          code: "M010000000000285701",
          qty: "1",
          length: "24.50",
          width: "21.00",
          height: "4.50",
          weight: "0.5960",
          volume: "0.002315250"
        }
      ],
      warehouseCode: "EWD",
      lengthLimit: "105.01",
      widthLimit: "105.01",
      heightLimit: "105.01",
      sumLimit: "1000.00",
      zweiLimit: "1000.00"
    },
    paramKey: {},
    rtn: { aaa: "asdf" },
    rtnKey: {}
  }
];

//tab选项
var tabitems = [
  { id: 1, title: "输入" },
  { id: 2, title: "输出" },
  { id: 3, title: "返回值对比" }
];

var openApiActions = [
  { crtname: "全部接口", action: "" },
  { crtname: "仓库代码查询", action: "queryWarehouse" },
  { crtname: "查询DOI库存详情", action: "queryProductInventoryDetail" },
  { crtname: "出库单列表查询", action: "queryOutboundOrderList" },
  { crtname: "创建出库单产品信息", action: "updateProductInfo" },
  { crtname: "轨迹查询", action: "queryTrack" },
  { crtname: "海外仓出库单查询", action: "queryOutboundOrder" },
  { crtname: "海外仓库存DOI查询", action: "queryProductInventoryList4Page" }
];

//入参模板
var openApiParamTypes = [
  {
    crtname: "正常参数1",
    param: {
      action: "queryProductInventoryList4Page",
      app_key: "rebecca",
      data: {
        inventoryType: "Country",
        pageNum: "1",
        pageSize: "20",
        wareHouseType: "OW",
        warehouseId: "1000008"
      },
      format: "json",
      language: "zh_CN",
      platform: "SELLERERP",
      sign: "00000000000000000000000000000000",
      sign_method: "md5",
      timestamp: "2015-06-16 00:19:26",
      version: "1.0"
    },
    rtn: {
      //期望返回的数据类型
      code: "0",
      msg: "操作成功",
      data: {}
    },
    paramKey: {
      action: { comment: "方法名", isError: true },
      app_key: { comment: "用户名", isError: true },
      data: {
        inventoryType: { comment: "", isError: true },
        pageNum: { comment: "", isError: true },
        pageSize: { comment: "", isError: true },
        wareHouseType: { comment: "", isError: true },
        warehouseId: { comment: "", isError: true },
        comment: "",
        isError: true
      },
      format: { comment: "", isError: true },
      language: { comment: "", isError: true },
      platform: { comment: "", isError: true },
      sign: { comment: "", isError: true },
      sign_method: { comment: "", isError: true },
      timestamp: { comment: "", isError: true },
      version: { comment: "", isError: true }
    },
    rtnKey: {}
  },
  {
    crtname: "正常参数2",
    param: {
      action: "queryProductInventoryList4Page",
      app_key: "rebecca",
      data: {
        inventoryType: "Country",
        pageNum: "1",
        pageSize: "20",
        wareHouseType: "OW",
        warehouseId: "1000008"
      },
      format: "json",
      language: "zh_CN",
      platform: "SELLERERP",
      sign: "00000000000000000000000000000000",
      sign_method: "md5",
      timestamp: "2015-06-16 00:19:26",
      version: "1.0"
    },
    rtn: {
      //期望返回的数据类型
      code: "0",
      msg: "操作成功",
      data: {}
    },
    paramKey: {
      action: { comment: "方法名", isError: true },
      app_key: { comment: "用户名", isError: true },
      data: {
        inventoryType: { comment: "", isError: true },
        pageNum: { comment: "", isError: true },
        pageSize: { comment: "", isError: true },
        wareHouseType: { comment: "", isError: true },
        warehouseId: { comment: "", isError: true },
        comment: "",
        isError: true
      },
      format: { comment: "", isError: true },
      language: { comment: "", isError: true },
      platform: { comment: "", isError: true },
      sign: { comment: "", isError: true },
      sign_method: { comment: "", isError: true },
      timestamp: { comment: "", isError: true },
      version: { comment: "", isError: true }
    },
    rtnKey: {}
  }
];

var rtnParamTpl = [
  {
    code: "0",
    msg: "操作成功",
    data: {}
  },
  {
    code: "1",
    msg: "网络连接失败",
    data: {}
  },
  {
    code: "2",
    msg: "验证不通过",
    data: {}
  }
];

var uschduleTasks = [
  {
    crtname: "任务1",
    task: "task1"
  },
  {
    crtname: "任务2",
    task: "task2"
  },
  {
    crtname: "任务3",
    task: "task3"
  },
  {
    crtname: "任务4",
    task: "task4"
  },
  {
    crtname: "任务5",
    task: "task5"
  },
  {
    crtname: "任务6",
    task: "task6"
  }
];

var tasksInfo = [
  { id: "task1", content: "主要用来触发开启动作" },
  { id: "task2", content: "主要用来触发暂停动作" },
  { id: "task3", content: "主要用来触发关闭动作" },
  { id: "task4", content: "主要用来触发终止动作" },
  { id: "task5", content: "主要用来触发异常尝试动作" },
  { id: "task6", content: "主要用来触发错误处理动作" }
];

var uschduleTaskRtns = {
  thData: [
    { thName: "任务名" },
    { thName: "任务全称" },
    { thName: "是否成功" },
    { thName: "触发时间" },
    { thName: "返回内容" }
  ],
  list: {
    tdName: [
      { name: "taskName" },
      { name: "taskMark" },
      { name: "isOk" },
      { name: "traggerTime" },
      { name: "tnContent" }
    ],
    datas: [
      {
        taskName: "任务1",
        taskMark: "task1",
        isOk: "yes",
        traggerTime: "1",
        tnContent: "任务成功执行"
      },
      {
        taskName: "任务1",
        taskMark: "task1",
        isOk: "yes",
        traggerTime: "1",
        tnContent: "任务成功执行"
      },
      {
        taskName: "任务1",
        taskMark: "task1",
        isOk: "yes",
        traggerTime: "1",
        tnContent: "任务成功执行"
      },
      {
        taskName: "任务1",
        taskMark: "task1",
        isOk: "yes",
        traggerTime: "1",
        tnContent: "任务成功执行"
      },
      {
        taskName: "任务1",
        taskMark: "task1",
        isOk: "yes",
        traggerTime: "1",
        tnContent: "任务成功执行"
      },
      {
        taskName: "任务1",
        taskMark: "task1",
        isOk: "yes",
        traggerTime: "1",
        tnContent: "任务成功执行"
      }
    ]
  }
};

var apps = [
  { crtname: "应用1", mark: "app1" },
  { crtname: "应用2", mark: "app2" },
  { crtname: "应用3", mark: "app3" },
  { crtname: "应用4", mark: "app4" },
  { crtname: "应用5", mark: "app5" },
  { crtname: "应用6", mark: "app6" }
];

var queues = [{ crtname: "应用1队列", mark: "toApp1Queue" }];

//任务列表
var taskLists = {
  thData: [
    { thName: "来源" },
    { thName: "任务类型" },
    { thName: "项目" },
    { thName: "内容" },
    { thName: "工时" },
    { thName: "A" },
    { thName: "R" },
    { thName: "状态" },
    { thName: "操作" }
  ],
  list: {
    tdName: [
      { name: "taskSourec" },
      { name: "taskType" },
      { name: "project" },
      { name: "content" },
      { name: "hoursUse" },
      { name: "assigner" },
      { name: "reciever" },
      { name: "state" },
      { name: "operation" }
    ],
    datas: [
      {
        taskSourec: "来源1",
        taskType: "处理缺陷",
        project: "项目1",
        content: "有故障，需要及时处理",
        hoursUse: "3",
        assigner: "a1",
        reciever: "r1",
        state: "未完成"
      },
      {
        taskSourec: "来源2",
        taskType: "开发",
        project: "项目2",
        content: "添加新功能，实现xxx效果",
        hoursUse: "3",
        assigner: "a2",
        reciever: "r2",
        state: "正在进行中"
      },
      {
        taskSourec: "来源3",
        taskType: "测试",
        project: "项目3",
        content: "测试xxxxx",
        hoursUse: "2",
        assigner: "a3",
        reciever: "r3",
        state: "已完成"
      },
      {
        taskSourec: "来源4",
        taskType: "交付",
        project: "项目4",
        content: "交付项目",
        hoursUse: "4",
        assigner: "a4",
        reciever: "r5",
        state: "正在进行中"
      },
      {
        taskSourec: "来源5",
        taskType: "会议沟通",
        project: "项目5",
        content: "1,2,3！准备会议",
        hoursUse: "1",
        assigner: "a5",
        reciever: "r6",
        state: "未完成"
      }
      // {
      //   taskSourec: "来源6",
      //   taskType: "处理缺陷",
      //   project: "项目1",
      //   content: "有故障，需要及时处理",
      //   hoursUse: "3",
      //   assigner: "a1",
      //   reciever: "r1",
      //   state: "未完成"
      // }
    ]
  }
};
